import http from '@/request/http.js'

// 空间
export const getSpaceInfo = params => http.get('/user/up/getEliteInfo/' + params)
export const getMsgList = params => http.post('/user/msg/msgList', params)
export const getCenterIndex = params => http.get('/user/online/userCore', params)
export const onEditUserInfo = params => http.get('/user/online/find', params)//编辑用户信息
export const postUserInfo = params => http.post('/user/online/upd', params)//编辑用户信息
export const getInviteList = params => http.post('/user/invite/inviteList', params)//邀请记录-同事

export const getMyRecruitIpElite = params => http.post('/user/entrust/myRecruitList', params) // 我的招募
export const getMyDelivery = params => http.post('/user/entrust/xcxMyRecruitDeliList', params) // 我的投递
export const recruitBatchShelf = params => http.post('/user/entrust/batchShelf', params) // 我的招募上下架
export const deleteRecruit = params => http.delete('/user/entrust/delRecruit', params) // 我的招募-删除
export const getDeliveryUserList = params => http.post('/user/entrust/deliUserList', params) // 投递用户列表
export const getmyReprWorksList = params => http.post('/user/repr/myReprWorksList', params) // 我的代表作列表
export const postdelRepWorks = params =>  http.post('/user/repr/del', params) // 删除我的代表作品
export const shelfReprWorks = params =>  http.post('/user/repr/shelfReprWorks', params) // 上下架我的代表作品
export const getCollectList = params => http.post('/user/collect/collect/list', params)//我的收藏
export const postCreateCompany = params => http.post('/user/up/createEnt', params)//成为企业
export const findMyEntInfo = params => http.post('/user/up/findMyEntInfo', params)//企业编辑
export const getCompanyInfo = params => http.post('/user/up/findEntInfo', params)//企业详情
export const postFindCompany = params => http.post('/user/up/findEntName', params)//查找企业
export const getViewContactList = params => http.post('/user/collect/xcxViewContactList', params)//我的 联系记录
export const postJoinCompany = params => http.post('/user/up/joinEnt', params) // 加入公司
export const getFindAllCompany = params => http.get('/user/up/findAllEntName', params) // 查找所有企业